package com.cjh.mybatis08.transaction;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @Descripton 事务接口
 * @Author cjh
 * @Date 2023/5/29 10:42
 */
public interface Transaction {
    Connection getConnection() throws SQLException;

    void commit() throws SQLException;

    void rollback() throws SQLException;

    void close() throws SQLException;
}
